package com.zzz.common;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author Chunsheng.Zhang
 * @date 2021/5/11 16:24
 * @description : TODO
 */
public class PasswordUtil {


    public static String generatePassword(String realPassword){
        String encodePassword = new BCryptPasswordEncoder().encode(realPassword);

        return encodePassword;
    }


    public static void main(String[] args) {
        System.out.println(PasswordUtil.generatePassword("111"));
        System.out.println(PasswordUtil.generatePassword("456"));
    }

}
